@import '~scss/variables';

$titleHeight: 30px;

.container {
  height: 100%;
}

.header {
  line-height: $titleHeight;

  @at-root {
    .pre {
      display: inline-block;
      cursor: pointer;
      span {
        vertical-align: super;
        font-size: 14px;
        padding: 0 4px;
      }
    }
  }
}

.article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 100%;
  grid-gap: 12px;
  padding: 12px;
  height: calc(100% - #{$titleHeight});

  border-radius: $border-radius;
  background-color: $lightest;
  border: solid 1px #d8dee5;

  @at-root {
    .summery {
      width: 338px;
      h3 {
        line-height: 50px;
        font-weight: bold;
      }
      @at-root {
        .dataList {
          border-radius: 4px;
          background: #fff;
          border: solid 1px $light-color03;
          padding: 4px 0;
          & > div {
            h4 {
              font-weight: bold;
              &:after {
                content: ':';
              }
            }
            p {
              font-weight: normal;
              cursor: pointer;
              &:hover {
                color: #4ca986;
              }
            }
            padding: 12px;
            border-radius: 4px;
            background-color: $lightest;
            margin: 4px 8px;
          }
        }
        .selectContainer {
          display: flex;
        }
        .resourceIcon {
          width: 45px;
          height: 32px;
          border-radius: 2px;
          background-color: $bg-color;
          margin-left: 9px;
          text-align: center;
          line-height: 29px;
          cursor: pointer;
          &:hover {
            background-color: #d8dee5;
          }
        }
      }
    }
    .log {
      border-radius: 4px;
      background-color: #242e42;
      color: #fff;
      display: grid;
      grid-template-rows: auto 1fr;
      @at-root {
        .toolbar {
          &.pollingMode {
            grid-template-columns: 1fr 32px 130px 32px;
          }
          padding: 8px 20px;
          line-height: 32px;
          border-radius: 4px;
          box-shadow: 0 1px 0 0 #182236;
          display: grid;
          grid-template-columns: 230px 1fr 32px 130px 32px;
          grid-column-gap: 8px;
          @at-root {
            .frequencyOpts {
              border: solid 1px #182236;
              border-radius: 3px;
              :global {
                .select-control {
                  background-color: #242e42;
                  color: inherit;
                  font-weight: 400;
                  border: none;
                  background-color: transparent !important;
                  &:hover {
                    background-color: transparent;
                  }
                }
                .option-selected-area {
                  display: none;
                }
                .select-value-label,
                .select-value {
                  color: #fff !important;
                }
                .select-menu {
                  padding: 0;
                }
              }
            }
            .pollingBtn {
              border: solid 1px #182236;
              border-radius: 2px;
              background-color: #242e42;
              width: 32px;
              text-align: center;
              line-height: 32px;
              cursor: pointer;
            }
            .duration {
              border-radius: 4px;
              background-color: #2a354b;
            }
            .clearQuery {
              cursor: pointer;
            }
            .input {
              border-radius: 4px;
              background-color: #2a354b;
              align-items: center;
              display: flex;
              padding: 0 8px;
              input {
                margin: 0 10px;
                color: #fff;
                background-color: inherit;
                outline: none;
                border: none;
                flex: 1;
              }
            }
          }
        }
        .terminal {
          padding: 8px 20px;
          overflow: auto;
          p {
            line-height: 24px;
            color: #b7c4d1;
            font-weight: 600;
          }
          @at-root {
            .logTime {
              color: #5f708a;
            }
          }
        }
      }
    }
  }
}

.disableLink {
  cursor: no-drop;
}

.hightLight {
  background-color: #ffc781;
  color: #242e43;
  border-radius: 2px;
  padding: 0 2px;
}

.queryLog {
  color: #d8dee5;
  white-space: pre-wrap;
}
